package com.yeyks.dal.dao;

import com.yeyks.dal.domain.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    UserInfo selectByPrimaryKey(Integer id);

    List<UserInfo> selectAll();

    int updateByPrimaryKey(UserInfo record);

    UserInfo selectUseInfoPhone(@Param("phone") String phone);

    void insertReturnId(UserInfo userInfo);

    UserInfo selectUserInfoPhonePwd(@Param("phone") String phone, @Param("password") String password);

    Integer modifyPasswordById(@Param("id") Integer id, @Param("password") String password);

    Integer updateAvatar(@Param("id") Integer id, @Param("avatar") String avatar);

    Integer updateExtraInfoById(@Param("id") Integer id, @Param("extraInfo") String extraInfo);

    UserInfo selectUserByCode(@Param("code") String code);
}